<?php
include("../../include/init.php");

$username = fs_get_value("q");
if(strlen($username) == 0){
	$error_info = "* 不能为空！";
}
else{
	if(strlen($username) < 4 || strlen($username) > 30){
		$error_info = "* 长度不符合要求！";
	}
	else{
		global $db;
		$num = $db -> row_count(TABLE_MEMBER,"passport = '".$username."'");
		if($num != 0){
			$error_info = "* 该账号已被使用！";
		}
		else{
			$error_info = "该账号可以使用！";
		}
	}
}
echo $error_info;
?>